package com.wgo.precise.server.wiring;

import com.wgo.bpot.common.transport.servicefacade.BpotServices;
import com.wgo.bpot.domain.common.Service;
import com.wgo.bpot.domain.common.UserSession;
import com.wgo.bpot.server.service.ModifyingOperationsState;
import com.wgo.bpot.wiring.ServiceAccessor;
import com.wgo.bpot.wiring.ServicesFactoryImpl;
import com.wgo.precise.server.service.PreciseServicesImpl;
import com.wgo.precise.service.PreciseServices;

public class PreciseServicesFactoryImpl extends ServicesFactoryImpl {

	public PreciseServicesFactoryImpl() {
		super();
	}

	public PreciseServicesFactoryImpl(ServiceAccessor serviceAccesor, ModifyingOperationsState modifyingOperationsState) {
		super(serviceAccesor, modifyingOperationsState);
	}

	@Override
	public BpotServices createServices(UserSession userSession, Service service) {
        PreciseServicesImpl precise = new PreciseServicesImpl();
        return configureServices(precise,userSession);
	}

    @Override
    public Class<? extends BpotServices> getServicesApi() {
        return PreciseServices.class;
    }
    
}
